<template>
	<div>
		
	</div>
</template>

<script>
	export default {
		data() {
			return {
				subject:'',
			};
		},
		methods:{
		    // 用户信息
			getuserinfo(){
				var that = this;
				var url = this.$store.state.url+'User/getUserInfo';
					
				that.request.wxRequest('GET',url,'',function(res){
					if (res.data.errcode == 0 || res.data.errcode == '0') {
					  // console.log(res);
					  var data = res.data.data;
					  // console.log(data)
					  if(data.subject==''){
						    that.$router.push({
								path:'/judgeStatus',
							})
					  }else{
						  that.subject = data.subject;
						  localStorage.setItem('othersubject',data.subject);
						  that.$router.push({
						  	path:'/questionindex',
						  })
					  }
					}
				})
			}
		},
		mounted() {
			var that = this;
			that.getuserinfo();
		}
	}
</script>

<style>

</style>
